home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 23
/
Aminet 23 (1998)(GTI - Schatztruhe)[!][Feb 1998].iso
/
Aminet
/
dev
/
amos
/
AMOS1097.lzh
/
AMOSLIST
/
000051_amos-request@svcs1.digex.net_Fri Oct 3 07:48:18 1997.msg
< prev
next >
Wrap
Internet Message Format
|
1997-11-02
|
2KB
Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
by mail3.access.digex.net (8.8.5/8.8.5) with ESMTP id HAA20771
for <mcox@access.digex.net>; Fri, 3 Oct 1997 07:48:17 -0400 (EDT)
Received: (from daemon@localhost)
by svcs1.digex.net (8.8.5/8.8.5) id GAA01273
for amos-out; Fri, 3 Oct 1997 06:36:31 -0400 (EDT)
Received: from mail4.access.digex.net (mail4.access.digex.net [205.197.247.2])
by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id GAA01270
for <amos-list@svcs1.digex.net>; Fri, 3 Oct 1997 06:36:30 -0400 (EDT)
Received: from com1.uclan.ac.uk (com1.uclan.ac.uk [193.61.255.3])
by mail4.access.digex.net (8.8.5/8.8.5) with ESMTP id GAA07305
for <amos-list@access.digex.net>; Fri, 3 Oct 1997 06:36:18 -0400 (EDT)
Received: from mail-gw.uclan.ac.uk by com1.uclan.ac.uk with SMTP (PP);
Fri, 3 Oct 1997 11:31:59 +0100
Received: from MAS1/MAILQ by mail-gw.uclan.ac.uk (Mercury 1.21);
3 Oct 97 11:36:09 GMT+0
Received: from MAILQ by MAS1 (Mercury 1.21); 3 Oct 97 11:35:36 GMT+0
From: "Lee." <l.a.atkins@uclan.ac.uk>
Organization: University of Central Lancashire
To: amos-list@access.digex.net
Date: Fri, 3 Oct 1997 11:30:14 GMT+0
Subject: Re: Sorting routine. Bubble sort
Priority: normal
X-mailer: Pegasus Mail for Windows (v2.33)
Message-ID: <4AED992BA0@mail-gw.uclan.ac.uk>
Status: O
X-Status:
> Hi!
>
> Is there a smooth way to sort 20 variables???
>
This is the second sorting thing written so heres my bubble sort
routine.
Im doing this now from memory so it may/may not work
Dim v(20) <-our variables
...
.....
Repeat
c=0
For q=1 to 19
IF v(q)>v(q+1)
temp=v(q)
v(q)=v(q+1)
v(q+1)=temp <-swap em round
c=1
END IF
Next q
Until c=0
That should work!! hopefuly
____________________________________
Lee Atkins.
L.A.ATKINS@UCLAN.AC.UK
IRC nick : EMBWBAM
________________________________________
Metal detector mornings!
________________________________________